﻿<%@ Page Language="C#" MasterPageFile="~/Home.Master" AutoEventWireup="true" CodeBehind="Productdetail.aspx.cs" Inherits="BookStore.Productdetail" Title="Product Detail" %>
<%@ Register src="Controls/GetproductName.ascx" tagname="GetproductName" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphhome" runat="server">
  <div class="breadcrumb">
        <a href="Default.aspx">Home</a> 
      </div>
    
  <asp:DataList ID="DataList1" runat="server" RepeatColumns="1" 
                 RepeatDirection="Horizontal" 
                 RepeatLayout="Flow" 
        onselectedindexchanged="DataList1_SelectedIndexChanged">
                <ItemTemplate>
  <div class="product-info">
    <div class="wrapper indent-bot">
            <div class="fleft left spacing">
                               
          <div class="image"> 
           <asp:Image ID="Image1" runat="server" Height="388px" ImageUrl='<%# "/image/Catalog/"+Eval("images") %>' Width="259px" />
          </a>
         
          </div>                       
        </div>
     <div class="extra-wrap">
      <h1> <asp:Label ID="Label2" runat="server" Text='<%# Eval("productName") %>'></asp:Label></h1>
      <div class="description">
         <br />
           <span>Product Model:</span> 
          <asp:Label ID="lblproductmodel" runat="server" Text='<%# Eval("productcode")%>'></asp:Label><br />
            <div class="padd-avalib"> <div class="extra-wrap"> <span class="prod-stock-2">Availability:</span> <div class="prod-stock">In Stock</div></div></div>
         <div class="price">
        <span class="text-price">Price:</span>
            <span class="price-new">
                <asp:Label ID="Label3" runat="server" Text='<%# Eval("price", "{0:C}") %>'></asp:Label></span><span class="price-old"></span> 
                <span class="price-tax"></span><br />
         </div>
          <div class="cart">
        <div class="prod-row">
          <div class="cart-top">
            <div class="cart-top-padd">
              
              </div>
              <a id="button-cart"><asp:LinkButton ID="LinkButton1" runat="server" CssClass="button button-prod" 
                              ForeColor="White" Font-Size="12px" Height="22px" Width="100px"  
                              CommandArgument='<%# Eval("productId") %>' onclick="LinkButton1_Click">Add to cart</asp:LinkButton></a>
          </div>
        </div>
        
        <div class="extra-button"><div class="wishlist"></div>
        <div class="compare"></div>
       </div>
    
        </div>
         <div class="review">
            <div><img src="catalog/view/theme/theme006/image/stars-0.png" alt="0 reviews" />&nbsp;&nbsp;<div class="btn-rew"><a onclick="$('a[href=\'#tab-review\']').trigger('click');">0 reviews</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a onclick="$('a[href=\'#tab-review\']').trigger('click');">Write a review</a></div></div>
                    <div class="share">
            <div class="addthis_toolbox addthis_default_style ">
                  <div class="right"><a id="A1" class="button"><span><asp:ImageButton ID="igmbuy" runat="server"  ForeColor="White"
                        AlternateText="Buy product" onclick="igmbuy_Click" /></span></a> <asp:LinkButton ID="lbtback" runat="server" onclick="lbtback_Click">Back</asp:LinkButton></div>
            </div>

                
            </div>
          </div>
          </div>
  </div>
  </div>
<div class="wrapper mb-1">
  <div id="tabs" class="htabs"><a href="#tab-description">Description</a>
            <a href="#tab-review">Reviews (0)</a>
          </div>
</div>
<div class="wrapper">
  <div id="tab-description" class="tab-content"><div class="std">
	<p>
        <asp:Label ID="Label1" runat="server" Text='<%# Eval("description")%>'></asp:Label></p>
</div>
</div>
      <div id="tab-review" class="tab-content">
    <div id="review"></div>
    <h2 id="review-title">Write a review</h2>
    <b>Your Name:</b><br />
    <input type="text" name="name" value="" />
    <br />
    <br />
    <b>Your Review:</b>
    <textarea name="text" cols="40" rows="8" style="width: 98%;"></textarea>
    <span style="font-size: 11px;"><span style="color: #FF0000;">Note:</span> HTML is not translated!</span><br />
    <br />
    <b>Rating:</b> <span>Bad</span>&nbsp;
    <input type="radio" name="rating" value="1" />
    &nbsp;
    <input type="radio" name="rating" value="2" />
    &nbsp;
    <input type="radio" name="rating" value="3" />
    &nbsp;
    <input type="radio" name="rating" value="4" />
    &nbsp;
    <input type="radio" name="rating" value="5" />
    &nbsp; <span>Good</span><br />
    <br />
    <b>Enter the code in the box below:</b><br />
    <input type="text" name="captcha" value="" />
    <br />
    <img src="#" alt="" id="captcha" /><br />
    <br />
    <div class="buttons">
      <div class="right"><a id="button-review" class="button"><span>Continue</span></a></div>
    </div>
  </div>
  </div>
  </div>
                </ItemTemplate>
 </asp:DataList>
 
  

<script type="text/javascript">
$('#tabs a').tabs();
</script> 

<uc1:GetproductName ID="GetproductName1" runat="server" />
</asp:Content>
